package cn.kgc.reflect;

import cn.kgc.annotation.Bean;

/**
 * @author: mosin
 * @version: v1.0  2022/10/20
 */
public class User extends Person {

    private Integer age;
    Integer id;
    protected  String info;
    public  String name;

    public User(Integer age, String name) {
        this.age = age;
        this.name = name;
    }

    public User(Integer age) {
        this.age = age;
    }


    public User() {

    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    private void testMethod(){

        System.out.println("user中私有的方法被调用");
    };


    @Override
    public String toString() {
        return "User{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
